home *** CD-ROM | disk | FTP | other *** search
/ CD School House 10 / CD School House - Education and Games (10.0) - Wayzata Technology (1995).iso / mac / DOS / MISC / SSTUFF30 / INSTALL.BAT < prev    next >
DOS Batch File  |  1994-05-16  |  2KB  |  70 lines

  1. echo off
  2. if not exist STUFF.DOC goto nostart
  3. if exist TEMP del TEMP
  4. KLS 4
  5. BOX INSTALL1.TXT /c14 /i0 /x15
  6. INPUT /Q
  7. if errorlevel 254 goto done
  8. CD|INPUT /MDRV /Q /B+
  9. KLS 4
  10. BOX INSTALL2.TXT /c14 /i0 /x15
  11. INPUT /KQF "Quick or Full Install? (ESC to abort)" /I /R18 /C
  12. if errorlevel 254 goto done
  13. if errorlevel 2 goto full
  14. :quick
  15. XD C:\STUFF >NUL
  16. if errorlevel 1 goto error1
  17. %DRV%KLS 4
  18. %DRV%BOX /T1 /L20 /H4 /W40 /C14 /I0
  19. %DRV%WRITE "Quick Install" /R3 /C 15
  20. %DRV%WRITE "Copying files to C:\STUFF..." /R8 /L25 207
  21. COPY %DRV%*.* >NUL
  22. WRITE "Copying files to C:\STUFF...done." /R8 /L25 79
  23. WAITFOR 3
  24. KLS 4
  25. INPUT "Would you like to print the documentation to LPT1?" /N /R10 /C 79
  26. if errorlevel 1 copy STUFF.DOC LPT1:
  27. goto done
  28. :full
  29. set TGT=C:\STUFF
  30. KLS 4
  31. BOX /T1 /L20 /H4 /W40 /C14 /I0
  32. WRITE "Full Install" /R3 /C 15
  33. BOX /T10 /L5 /H4 /W70 /C14 /I0
  34. WRITE "Enter COMPLETE drive/directory in which to install STEENBURGH's STUFF" /r18 /c 78
  35. INPUT "Install to: " /MTGT /F53 112 14 /R12 /L7
  36. XD %TGT% >NUL
  37. if errorlevel 1 goto error1
  38. %DRV%KLS 4
  39. %DRV%WRITE "Copying files to %TGT%..." /R8 /L20 207
  40. COPY %DRV%*.* >NUL
  41. WRITE "Copying files to %TGT%...done." /R8 /L20 79
  42. WAITFOR 3
  43. KLS 4
  44. INPUT "Would you like to print the documentation?" /N /R4 /C 79
  45. if not errorlevel 1 goto done
  46. FOR %%d IN (1 2 3) DO CHKPRN LPT%%d |SIFT /F:>>TEMP
  47. WRITE "CHKPRN has determined the status of your printer(s):" /R6 /C 79
  48. BOX TEMP /C79 /I4 /X78
  49. INPUT "Select a printer port: " /K123 /Q /R20 /C 79 /MLPT
  50. if errorlevel 254 goto done
  51. call SAFEPRN.BAT STUFF.DOC LPT%LPT%
  52. goto done
  53. :error1
  54. cls
  55. echo There was a problem creating the directory.
  56. echo Check the drive/directory name and try again.
  57. echo All but the LAST subdirectory level specified must already exist.
  58. pause
  59. goto done
  60. :nostart
  61. cls
  62. echo You must run INSTALL.BAT from the directory in which it is located!
  63. echo Change to the proper drive/directory and run INSTALL.BAT again!
  64. pause
  65. :done
  66. set DRV=
  67. set TGT=
  68. set LPT=
  69. cls
  70.